<?php
class Comment extends AppModel{
    var $name='Comment';
    var $belongsTo=array('User');  
    var $hasMany=array('CommentVote'=>array(
        'className'=>'CommentVote',
        'foreignKey'=>'comment_id',
        'fields'=>array('CommentVote.agree','CommentVote.disagree','CommentVote.user_id')
    ));
    
}
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
